<table>
<?php
if(isset($_GET['keyword'])):
	$q	=	mysql_query("SELECT * FROM tailieu WHERE tl_title LIKE '%".$_GET['keyword']."%'");
	while($row	=	mysql_fetch_array($q)):
?>
	
		<tr>
			<td><img width="40" src="images/<?php echo(strpos($row['tl_link'],'.doc') ? 'doc24x30.gif' : 'pdf24x30.gif');?>" /></td>
			<td style="vertical-align: top; text-align: left; width: 60%;">
				<a href="index.php?act=view_doc&id=<?php echo $row['tl_id'];?>"><?php echo $row['tl_title'];?>
			</td>
			<td style="vertical-align: top;"><a href="download.php?id=<?php echo $row['tl_id'];?>">Download</a></td>
		</tr>
	
<?php endwhile;?>
<?php endif;?>
</table>

